import java.io.File;

import javax.swing.filechooser.FileFilter;

public class QueryFilter extends FileFilter{

	@Override
	public boolean accept(File file) {
		if (file.isDirectory()) {
			return true;
		}
		String name = file.getName();
        if(name.endsWith(".query"))
            return true;
        else
            return false;
	}

	@Override
	public String getDescription() {
		return "Query File";
	}
}
